/*******************************************************************************
 * Copyright (c) 2011 LegSem.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the GNU Public License v3.0
 * which accompanies this distribution, and is available at
 * http://www.gnu.org/licenses/gpl-3.0.txt
 * 
 * Contributors:
 *     LegSem - initial API and implementation
 ******************************************************************************/
package com.legsem.legstar.cci;

import com.legstar.coxb.transform.IHostToJavaTransformer;
import com.legstar.coxb.transform.IJavaToHostTransformer;

/**
 * This interaction takes a single input structure and produces a single output
 * structure.
 */
public interface LegStarSingleIOInteractionSpec extends LegStarInteractionSpec {

    /**
     * Get the Transformer for input java objects.
     * 
     * @return a transformer capable of producing host data out of a java object
     */
    public IJavaToHostTransformer getInputTransformer();

    /**
     * Set the Transformer for input java objects.
     * 
     * @param transformer a transformer capable of producing host data out of a
     *            java object
     */
    public void setInputTransformer(IJavaToHostTransformer transformer);

    /**
     * Get the Transformer for output host data.
     * 
     * @return a transformer capable of producing java objects out of host data.
     */
    public IHostToJavaTransformer getOutputTransformer();

    /**
     * Set the Transformer for output host data.
     * 
     * @param transformer a transformer capable of producing java objects out of
     *            host data
     */
    public void setOutputTransformer(IHostToJavaTransformer transformer);

}
